<!DOCTYPE html>
<html><head>
<title>登录</title>
<meta name="content-type"; charset="UTF-8">
<style>
     body{
       background:url(./img/denlu.jpg) no-repeat;
       background-size: 100%;
       /* background-color: #2807b3; */
     }
   </style>

</head>
<body> 
    
        <img src="img/denglu.png" width="110%" height="100%" style="margin-top:-1%;margin-left:-1%;"/>

<div class="content" align="center"> <!--头部-->

 <div class="header" style="margin-top:10%;margin-left:50%"> <h1>登录页面</h1> </div> 
<!--中部--> 
<div class="middle"  style="margin-top:0%;margin-left:45%">
 <form id="loginform" action="loginaction.php"  method="post">  <!--action="loginaction.php"  -->
<table border="0"> <tr> 
    <td>用户名：</td> 
<td> <input type="text" id="name" name="username" 
required="required" value="<?php
echo isset($_COOKIE[""]) ? $_COOKIE[""] : ""; ?>"> </td> </tr> 
<tr> <td>密   码：</td> <td><input type="password" id="password" name="password"></td> 
</tr> <tr> <td colspan="2"> <input type="checkbox" name="remember"><small>记住我 </td> </tr> <tr> <td 
colspan="2" align="center" style="color:yellow;font-size:10px;"> <!--提示信息--> <?php
$err = isset($_GET["err"]) ? $_GET["err"] : "";
switch ($err) {
    case 1:
        echo "用户名或密码错误！";
        break;

    case 2:
        echo "用户名或密码不能为空！";
        break;
}?> </td> </tr> <tr> <td colspan="2" align="center"> 
<input type="submit" id="login" name="login" value="登录" style="margin-left:45%"> <input type="reset" id="reset" 
name="reset" value="重置"> </td> </tr> 
<tr> 
    <td colspan="2" align="center"> 还没有账号，快去<a href="register.php">注册</a>吧</td>
</tr> 
</table> 
</form> 
</div> 
<!--脚部--> 
<div class="footer" style="margin-left:45%"> <small>Copyright &copy;  </div> </div>
</body>
</html>     
